<?php 
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('format', '', 0);
class app {
	function __construct() {		
		$this->db = pc_base::load_model('iappTel_model');
	}
	
	public function init() {
		echo "not init";
	}
	
	public function show() {
		$id = intval($_GET['id']) ? intval($_GET['id']) : showmessage(L('parameter_error'),HTTP_REFERER);
		
		$info = $this->db->get_one(array('id'=>$id));
		if($info){
			$info[tels] = string2array($info[tels]);
		}else
		{
			$info = array();
		}
		echo json_encode($info);
	}
}
?>